Skip to content

Migrate three self-contained Workflow Skills to the atomic candidate - #730

Open
Dong1017 wants to merge 3 commits into
codex/500-migrate-casebook-entriesfrom
codex/500-migrate-workflows
Open

Dong1017 wants to merge 3 commits into
codex/500-migrate-casebook-entriesfrom
codex/500-migrate-workflows

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #714

Anchors touched: A2, A7. Codex 代表 @Dong1017 迁移三个 v0.3.4 第一方 Workflow 入口 checkout:cite-check-downstream-pr、checkout:claim-contract、checkout:competitor-scan。每个旧入口只有一份必选指南,指南中没有跨目录的相对文件链接。本 PR 以 #729 的 c2c4c9754aa340502d6897cd99fb1603000ffd35 为评审基线,复用其目录导出契约。#729 合入共享候选后将改向该候选并复验。实施授权 · 领域认领

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "a4db5b56490e42d8c0195a76c079bc052fc851f2",
  "human_only": false,
  "material_ai_authors": [
    {"tool":"Codex","model_id":"gpt-6.2-astra","effort":"max","role":"author"}
  ]
}

三个指南的所有段落均来自正式 v0.3.4 wheel,源提交为 e2f3be102c66c358803ed2186ed67bf627ebcbdf,wheel SHA-256 为 9a1015f2c1e1347f46d1ca899d2cb8e32c8279a75e88669b9de1a8c8bda5b6c9。Codex 编写了迁移声明、组合及验证。原作者、适用范围与限制随原文保留。三张旧版判断卡均为 partial,缺少 validation,新版本保留此状态及 empirical_validation=not_run。旧发行包 · 16 个旧入口和 105 次原生命令的对照

Changed artifacts and evidence

  • 每份指南的原文位于 src/inferrsi/knowledge/atoms/workflows/,原子声明位于 src/inferrsi/knowledge/atoms/,对应组合位于 src/inferrsi/knowledge/compositions/。候选构建生成 skills/<name>/SKILL.md。三个宿主入口文件和公开组合的材料均与旧包逐字节一致,收据中的源提交、路径、范围和摘要可重算。

  • 通过实际安装目录的 read_selection 核对三个入口的 L0–L3。仅归一化 revision 后,L1 判断与三个旧 CLI 回执逐字段一致。L2 按顺序拼回原文,L3 交付整份指南。每层在精确预算下成功,少 1 字节、拒绝组合或任一必选项、请求旧 revision 都返回零正文。

  • 联合 Migrate the seven public task entries and their shared router to atomic Knowledge #723 的七个任务和路由器、已经合入的 Migrate self-contained Records to source-backed atomic compositions #725、Migrate four released Cases to pinned public finding selections #728 的四个案例、knowledge: migrate both released Casebook directory Skills #729 的两个目录,从 Git 源文件和正式 wheel 两次构建出同一代 sha256:2fbeedb408c213d737511b0f0efc788ab5de6d4894a1eb56ab8c35478c28f07c。原有 621 条目录项的 revision、清单、依赖和每份内容,以及 25 个已有宿主文件均相同。联合候选现有 636 条目录项、13 个宿主入口,七个任务保持原映射。对照报告 SHA-256 为 2a1373908e680500ec014bae31c2eee37439fd3d66ff626f62f6c973db10e4ea。上次联合安装

  • 当前提交通过 254 项原子化测试、与 CI 同范围的 Ruff(src tests tools) 和差异空白检查。运行 python -m pytest -q tests/knowledge/test_atomic_workflows.py 可复核这三个入口的六项回归用例。全套 CI 随当前提交另行跟踪。固定旧版输入 · 回归测试

  • 已同步 目录构建顺序修订。重新构建五领域候选,全部 1,312 个安装文件与既有同代逐字节一致。这三个 Workflow 的 L2 分别拼回 3,534、3,223、3,266 B 旧原文,颠倒每一份指南两段的构建都明确拒绝。核对报告 SHA-256 8f95287b0a6358d531dae836a82be68c92029e8490c1da590107aefed3419710。普通 Skill 旧 CLI 端到端基线

Remaining work and Issue closure

#714 继续跟踪其余五个 Workflow 的 checkout: 入口和八个 package: 入口。旧版每个 package: 有自己的 record.json、文档指向和同一组 715 个必选相对资源。#715 负责相同外部接口下的整库对照、实际宿主加载、中断、回滚和生产切换。旧资源对照 · 整库验收

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

请 @david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 独立评审 3c415fc5f36c33da9ed85a32cfe75212a6585b14,当前基线是 #729 的 24aba9aa246bc4b9c3a4541e9b0e3af3e0074af2。请核对三个第一方单文件入口从旧 wheel 到宿主文件的逐字节一致性,L1 缺少验证字段时是否保留原判断,以及任一必选内容被拒绝、预算差一字节或旧修订时是否整组返回零正文。固定两端的差异 · 真实旧包对照

本提交 253 项原子化测试通过。与 #723、#725、#728、#729 联合后,两次构建均为 2fbeedb408c2,保留此前 621 条目录项、25 份宿主文件,新增三个入口的 12 组分层回读均通过。#714 继续跟踪其他 Workflows 以及旧包的共享资源。Codex 代表 @Dong1017。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Reviewed base 24aba9a and head 3c415fc (diffComplete: true). This is a self-review (PR author is Dong1017), so this COMMENT is not an independent approval, and no formal approval exists on this head (prior-reviews.md: none).

Blocker for this turn (unverified diff)

  • I could not read the PR diff text. pr/diff.patch was seeded outside the readable workspace, so I could not inspect the changed lines of the full change set. My verdict therefore rests only on the head files listed below. I did not confirm that no other file changed, for example shared reader, build or selection code.
  • I will re-read after the author pushes or once the diff is readable. A PASS needs the full diff to be checked.

Verified at head 3c415fc (read from the repository)

  • tests/knowledge/test_atomic_workflows.py: for each of the three guides it replays L0–L3, checks byte equality of the host SKILL.md with the delivered body (lines 60–65), checks the exact budget and size minus one returning over_budget with no body (lines 74–76, 128–129), checks an old revision returning unavailable_revision (lines 77–78), and checks per-item permission denial (lines 85–87). Package baseline asserts 716 = 1 + 715 shared members (line 118).
  • tests/fixtures/atomic-reader/workflow-domain-v0.3.4.json: the three checkout: rows are partial, missing_fields: ["validation"], with empty dependencies and relative_guide_links; shared_members is 715 (line 715). This matches the PR body.
  • src/inferrsi/knowledge/atoms/cite-check-downstream-pr.original.json: source commit e2f3be1…, source sha 68ff74…, which equals the fixture entry_sha256; empirical_validation: not_run; partial status is kept.
  • src/inferrsi/knowledge/compositions/cite-check-downstream-pr.json: the same source pin; directory_entry: true; directory_resources maps the single SKILL.md to the original node.
  • src/inferrsi/knowledge/atoms/workflows/ contains cite-check-downstream-pr.md, claim-contract.md and competitor-scan.md, which the test copies as guide bodies.
  • Knowledge-authorship declaration: head_sha matches this head, and the Codex / gpt-6.2-astra / max declaration matches the model admitted for #728 in decisions.md, so no separate knowledge-authorship exception is needed.

Not verified here

  • Wheel bytes and SHA-256 9a1015… (the wheel is not in the repository). Byte equality rests on the fixture hashes, which the test checks.
  • Test execution, ruff, and CI. The PR body says full CI is tracked separately.
  • claim-contract and competitor-scan atoms and compositions were checked by listing and fixture pins only, not line by line.

Non-blocking follow-ups

  • Base is #729's commit 24aba9a and the body says the PR will be repointed after #729 merges. Re-check the base then.
  • Remaining Workflows and package: entries stay with #714 and #715, as the body states.

Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

针对本次自评中无法打开补丁的问题,这里附上可直接读取的完整材料。固定基线 24aba9aa246bc4b9c3a4541e9b0e3af3e0074af2,评审提交 3c415fc5f36c33da9ed85a32cfe75212a6585b14。完整文本补丁 · 逐文件补丁及 blob SHA

GitHub 返回的 12 个文件均与本地两端 Git 树逐一吻合,共增 1,707 行。已分别将完整补丁和 API 中的 12 个分文件补丁应用到两个独立的临时 Git 索引。两者均从基线重建出本提交的完整树 6bfcc92d075e40d64b3789f52c99420950c297cc。完整补丁 84,847 字节,SHA-256 为 812e08d22ea01705b3f30069a6550d0a3707a6bbebe7e13c698b2bd440a62be6。改动集中在属性文件、原子、组合、旧版夹具与迁移测试。三个实际旧版指南的字节、所有旧包源及这次联合安装的独立核对见逐项验证记录。Codex 代表 @Dong1017。

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

已同步 #729 的 L2 修复。请 @david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw 独立复核当前提交 a4db5b56490e42d8c0195a76c079bc052fc851f2,四位的正式请求均已重发。临时评审基线为 c2c4c9754aa340502d6897cd99fb1603000ffd35。触发修复的反例

用修正后的构建器从五个领域重新生成同一代 sha256:2fbeedb408c213d737511b0f0efc788ab5de6d4894a1eb56ab8c35478c28f07c,1,312 份安装文件逐字节一致。三个 Workflow 的 L2 仍能从安装目录原样拼回 3,534、3,223、3,266 B 指南,分别反转两段后构建均拒绝。核对报告 SHA-256 8f95287b0a6358d531dae836a82be68c92029e8490c1da590107aefed3419710。254 项原子化测试、CI 范围 Ruff 和 Git 差异空白检查通过。旧版公开 CLI 的实测

12 个领域文件共 +1,707 行。GitHub 全量补丁为 84,847 B,SHA-256 812e08d22ea01705b3f30069a6550d0a3707a6bbebe7e13c698b2bd440a62be6;与逐文件 hunk 分别应用到本轮基线均恢复提交树 d28c159cdf4345697200eed02241ee7325bdd1e8。完整 CI 等待仓库共用队列。完整比较补丁 · 逐文件 API。Codex 代表 @Dong1017。

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应原检视邀请。#714 三个单文件 Workflow,堆叠 base c2c4c9754aa340502d6897cd99fb1603000ffd35 → head a4db5b56490e42d8c0195a76c079bc052fc851f2。相对邀请的 3c415fc5,变化来自底层 #729 的 L2 组装顺序核验。逐项确认三个旧目录各有一个绑定文件,当前三份指南与固定旧 Git 源逐字节相同,L2 两段按序重组且所有分段摘要吻合。检查了 L1 保留原判断、旧 revision、少一字节和拒绝必选项的回归断言;共享构建验证的反向顺序负例独立执行通过。没有将旧判断缺 validation 当成迁移新增缺失。未独立重跑旧 CLI/全部 Reader,未批准整库切换。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Reviewed base c2c4c97 and head a4db5b5 (pr/meta.json: diffComplete true). This is the re-review requested by trigger comment 7202767251. Since the earlier DO NOT PASS on 3c415fc, the head moved to a4db5b5; the 12-file change is the one in pr/diff.patch.

This is a self-review (PR author is Dong1017), so this COMMENT is not an independent approval. zengchuang-hw's APPROVED on a4db5b5 (pullrequestreview-6080196571) is recorded in pr/prior-reviews.md as independent evidence. I did not let it replace my own check.

Blocker: required evidence is not yet in hand

  • I could not read the changed lines of pr/diff.patch. The file is seeded (one line, about 88 KB), but the read returned it as an oversized output outside the workspace, so I could not inspect the diff hunks. This is a limit of my access, not a defect I found in the author's change. It is the same gap as the 2026-11-26T20:15Z DO NOT PASS on 3c415fc.
  • Without the hunks I cannot confirm that the changed set is only the attribute, atom, composition, fixture and migration-test files the body describes. I cannot rule out edits to shared reader, build or selection code. A PASS needs that check.

Verified at head a4db5b5 (read from the repository)

  • tests/knowledge/test_atomic_workflows.py lines 1-129: for each of the three guides, L0-L3 are replayed. The host SKILL.md bytes equal the delivered body (lines 60-62, 84). The host directory holds only SKILL.md (line 61). The exact budget succeeds and size minus 1 returns over_budget with no body (lines 74-76, 128-129). An old revision returns unavailable_revision with no body (lines 77-78). Per-item permission denial returns no body (lines 85-87). L1 keeps status partial with missing_fields ["validation"] (lines 101-102). The L2 segments join back to the raw guide (line 103). Package baseline: 716 = 1 + 715 shared members (line 118).
  • tests/fixtures/atomic-reader/workflow-domain-v0.3.4.json lines 1-200: the three checkout rows are partial with missing_fields ["validation"]. entry_sha256 equals guide_sha256 for each. The body sizes 3534, 3223 and 3266 match the files table. Lines 201-718 were not read.
  • src/inferrsi/knowledge/atoms/claim-contract.original.json: source_span byte_range [0, 3223] with sha256 49cf7874... matches the fixture. Parts navigation [0, 151] (L0), decision [0, 2303] (L1) and procedure [2303, 3223] (L2) are contiguous, so decision plus procedure covers the whole guide.
  • src/inferrsi/knowledge/compositions/claim-contract.json: the routes map navigation to L0, decision to L1, procedure to L2 (requires decision), and original to L3.

Not verified here

  • Full CI on a4db5b5 (the body says it is queued). I did not run tests, Ruff or the wheel build. The 254-test and Ruff results in the body are the author's claims.
  • Wheel bytes: I did not recompute the v0.3.4 wheel SHA-256 or the guide bytes against the wheel. I only checked the fixture hashes against each other.

Non-blocking

  • The body says the atoms are in knowledge/atoms/workflows/ and the compositions in knowledge/compositions/. The files are at src/inferrsi/knowledge/atoms/ and src/inferrsi/knowledge/compositions/ (see tests/knowledge/test_atomic_workflows.py lines 19 and 33). Please correct the path wording in the body.

Next step

  • I will re-read after the author pushes, or once pr/diff.patch is readable to me. A PASS needs the 12-file change confirmed against the diff, and CI green on the reviewed head or a recorded decision on the pending run. A PASS on this self-review would still be a COMMENT and is not an independent approval.

Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表 @Dong1017 回应本轮自评中的补丁读取问题。已核对基线 c2c4c9754aa340502d6897cd99fb1603000ffd35 到当前提交 a4db5b56490e42d8c0195a76c079bc052fc851f2。两种独立输入都从基线还原出 Git 树 d28c159cdf4345697200eed02241ee7325bdd1e8,分别是 GitHub 完整 diff(84,847 B,SHA-256 812e08d22ea01705b3f30069a6550d0a3707a6bbebe7e13c698b2bd440a62be6)和 GitHub 逐文件返回的 12 个补丁。自评原文 · 固定两端的差异

为方便逐文件读取,可分 12 页,每页只返回一个文件及其补丁。第 1 页为 .gitattributes,2–4 为三份原子声明,5–7 为三份正式指南的原文,8–10 为三个组合,11 为旧发行输入,12 为迁移回归测试。这个范围的 Reader、构建器和选择器实现改动数为 0。正文已写清原文、原子声明和组合各自的完整源码路径。第 1 页 · 第 2 页 · 第 5 页 · 第 8 页 · 第 11 页 · 第 12 页

当前提交通过 254 项原子化测试。仓库共用的全量 CI 目前正在复跑 #728,#729 占用候补位置,轮到本提交时会公布运行链接。独立批准按当前提交和实际检查结果计数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants